using UnityEngine;
using QFramework;

namespace ProjectSurvivor
{
	public partial class HurtBox : GameplayObject//表示一个挂在场景物体上的控制器（如玩家、刷怪器）。
	{
		public UnityEngine.GameObject Owner;
		void Awake()
		{
			mcollider2D = GetComponent<Collider2D>();
		}
		void Start()
		{
			if (!Owner)
			{
				Owner = transform.parent.gameObject;
			}

		}
		public Collider2D mcollider2D;
		public override Collider2D collision2D => mcollider2D;
	}
}
